package com.nxy.cpfsfe.enumtype;

/**
 * Description：成员机构类型枚举
 * 
 * @author jjw
 *
 */
public enum MbrOTypEnum {
	
	MBR_O("0","成员机构"),
	MBR_O_SUB_NET("1","成员机构下属网点"),
	SPCL_PARTCP("2","特殊参与者"),

	oldBNo ("0","老行号"),
	newBNo("1","新行号"),
	issuBNo("9","发卡行");

	
	private String code;
	
	private String name;
	
	MbrOTypEnum(String code,String name){
		this.code = code;
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public String getName() {
		return name;
	}
	
	public static String getNameByCode(String code){
		MbrOTypEnum[] enums = MbrOTypEnum.values();
		for(MbrOTypEnum item : enums){
			if(item.getCode().equals(code)){
				return item.getName();
			}
		}
		return null;
	}

}
